# 基于java镜像创建新镜像
FROM openjdk:8-jre
#设置工作目录
WORKDIR /seckill
# 将jar包添加到容器中并更名为 SeckillSystem.jar
COPY SeckillSystem.jar  SeckillSystem.jar
#暴露8090端口
EXPOSE 8090
# 运行jar包
ENTRYPOINT ["nohup","java","-jar","SeckillSystem.jar","&"]
